slight changes to dependency checking