avf: remote api boilerplate