add argument for -w and -c (not implmented yet)