new function local option parsing method