bug fixes
bug fixes, gpu support on nvidia grafics