add really dumb exception handling