removed command to separate package to avoid conflict
fixed the function call error and bring back flag package