revised configure method