most calculations done, for reverything. havent done the apis yet