add an option to remove debug messages + check if the key is present in the url