rectified the errors regarding resource routes and server stratup