hack in a solution to load the latest pattern on successful authorisation
pass id to server when saving and save it in client when loading