added contentType support, ref #81