added flags to clean