add more midp code
parse and ignore deprecated attribute