new prereq logic

Conflicts:
	Makefile
	avl