move Handle function into own file, still doesn't work