add flags to configure