fitted implementation of ASTNode to current interface