remote stat: bug fixes
add missing import
cli.Predicate: turn into a decorator