add end of registration flag to api