tidy up pre build option