add serviceerror class
rewrite checkElementByScheme function
add posibility to generate error
major changes