switch firebase to class as opposed to module