trim down the dependencies as much as possible