-code without host threading