added optional package file as input