added debug and messages for user