changed where mapserver gets attached and added (not working) map settings checking.