require url module and parse pathname when recieving requests