better error handler?
Merge pull request #27 from yonderHub/loop-inteface

better error handler?