takes cmd lines