make redis protocol parser in single file