add grep function to libi0