merged serial and http parser into one generic module