fixed race condition in printing options struct
bug fixes