adding configure by code