added parsing of prereqs and prereq fetching function (some bugs)