added secret to config, switched to restangular's services