fixed made sure gpio value is flushed and ignores messages without pin