Support different base api

Fixes #7
you can keep the code... this is just a minor comment ... formatting is more delicate issue for open source project... but txgithub has no policy regarding formating...