added script that checks requiremens; adjusted code