added replication code
call files