elements -> scriptlets, basic error handling