try to catch exceptions