v0.1.2: contentType callback param added