better local dependency checking