Work towards liteloader support. Fix creating new instance