make API consistent
version 0.5.0