error handling, a simple mark error functoion on node class
first implementation of error on nodes level