make sure deps are presents before gen and build