restructure src directory and add request parsing