some flags moved to build