added api and version methods, fixes