now takes cmd line args and works on user defined targets