moved require for logic.php