add function for reading both txt and bin me model