url fixes, added contentType return