fixed errors, will need to be updated for newer forge versions