allow configuration to be set via api