added checking for running prerequisites