added support for password based replication