added timeout function for mmp message