refactoring
added some logging