parse incoming data if possible