parse length before passing package

#98