modifications for 64bit Windows