fixed handling of non-text entities, added respond method without body