added a very important function

this function is needed, for proper operation of this piece of software.
Without it the user might be vulnerable to attacks by dragons and
shit....