added wave model serial code