updated, but does not work on 64bit