refactoring, added ty/catch for importand methods