moved code into try part, such that all possible exceptions will be handled as fallback