corrected some bugs to get it running