move get_instance to init