rename method names for string arguments and options
fix handling of optional arguments in directives