add get_promises() on controller/main.php