improved unit file