did some refactoring in preparation for adding authentication which is pretty essential