implement main application api, not working yet