registers, set, cleaned up logging