added init mode