add function dependencies