resolving #9; invalidAsValue option added