added support for forward dependencies