adding configure flags support