Add autoinit support and check for already inited

1.1 -> 1.2