deal with dependencies