fixing declaring stuff on options if its undefined