added more functions but I have to add better usage of command line args