naive first implementation of application api