save graphs to disc