add weak modes that can be overridden by pragma