get things to work with MapProxy TMS, but needs more clean up