bug fixes, wms parsing and wms capabilities loading