cpdir updated with new flags