added basic functions to background script