start moving things to a separarte function
run with local package