using @restpack instead of env