add configure for function state