using Options class in place of hash