Support different base api

Fixes #7
minor comment and you can keep the change

Not sure what to say about this kind of changes... you have re-indented this method without changing the arguments.

1. this just make harder to read the diff...and try find out where is the actual change
2. this can trigger an edit war... while you prefer this style, another contributor might prefer another one, and just like you, change it to its preferred format