init mutex after
check arguments number using argc and optind