added trace and verbose output