add --debug option
rename method names