base off of Sam Alba's repo