fix #1 make flags configurable with different types.