got rid of a bunch of stuff cleaned up how the api works.