To the surprise of noone this works of course, i am still a bit miffed that the process is fairly complicated and that i cannot just let my program zombie around since client tokens are rather short lived. I could set a cron job to extend them every 2 hours but is that the way its supposed to be?