remove loading external functions, instead just define the screenshot function