added an unbelievable amount of cool functionality