resolved weird problem with redefining datatypes when calling use on same file more than once. created simple main function.
renamed run function to main