condense the opening to the API