added messages to debug