cleaned up local logging