add my own safety to catch errors