added cache
removing xml methods
using cache