adding some try/catch