change the logic to just use extract options from active support which is much cleaner