implemented multiple apikey support
fixed priority bug for passing debug with 0, debug is now -1 (only within the perl script)