added support for dependencies