access attributes

escape newlines, json doesnt like them
changelog for #447