fix requirements handling