addition of the basic code to make it work

excludes secret.php, which contains the key