add option helpers

Add option helpers and add it to locals variable.