got rid of most bugs, need to fix invalid strings