refactor to using local dependencies