first version of position-cache added. next step is getting the local storage part working