added flags to testing