fancy new functions in mayconnect.php