main arguments parsing