refactored to class for boottime