error handling
Merge pull request #25 from yonderHub/loop-inteface

error handling