added flush command