added writeupexp stuff