added logger and spec