fix for importing in bookmarklet