move syntax from examples to api