changed map generation to render locally