added more functionality to the forth file