flattern dependencies