adept for windows (and fixed a function-call)