parsing options in own method