restored original if/else statement for compileDependencyParents, added @compileDependencyParents for each condition case