fixed issues with imports when opens is in path