switched get method to returning http's promise