makes the code compile

fixes massive security exploit and makes the code compile