add working trim and reachability