added get options function