clean up how paths and http works