implemented and adopted ReplicationConfig
Some fixes to logging and configuring