fixed attachment handling, added "replication damping"