both kinds of storage

complete the if statement
Connection->store on server
no connection->store locally