[FEATURE] add middleware dependencies