added mega cool but frustrating command line parsing stuff