trying to catch some errors