save and use pin from options