started adding a feature for exit 1
exit with 1 if something goes wrong