moved some constants out of index.php