move cmds from build to pre_build