handle put and get in local