a background program invoked when receiving a message from pmp