improved prerequisition generation