add check for prerequisites