added console messages for debug output