updated logging
improved logging