new functions for running background checks
new variable for writing files