optimize server initalization
revamping routes and app