modified hook_adjust to integrate into all files