still todo: remove new lines from cache