added inheritance support (beta)