return before rendering
add attributes for code safety
bug fix: default string value was wrong
better debug message