implementing build mode