support dependency inject
update version to 0.2.2