small API example
got it working