reduced messages in release. Added debug messages