partial implementation of full MEAN stack functionality