configure method and spec