fix error message
add default value for language
add caching of processed markup