add configure method