add error checking
Merge branch 'develop'