redone raw default reader to fix some bugs