* added better check for prerequirements