services working, index.js refactored