fix bug in import on windows/unix