changed dep2pkg from async to regular