added basic options code