got relocation and cookie functionality working