getReso and init