add support for pre tags in dtext
add api authentication