added receiver mode