move read/saved to js