refactor the to_sexp and sexp struct
clean up