getting params from commandline and hook up the actual function