fixed a bug and now read info from package file