better compatibility in legacy support