first steps toward api