set default value for flags in function get().