add configure method back

Related to #4638