add persistence to manager through gateway