utils.deps: improved import and added decorator