modified hk to support Windows