add try/catch for more safe work