added -gpu cmdline option; debugging the gpu part in progress