add a collect command which wraps all