forgot <?php in redapi.php