change api session and registration