inject by name for compress