stop using write_variable (for now)