add bin port
fix bug where entry is not reset
remove replication logic, as it is not correct