add legacy syntax support