read and skip padding