proper handling of declared dependencies