not sure why i defined the script as a module