changed deprecated build() to package(), removed startdir