added some loggin instead of stack trace