return error instead of logging
0.1.3