add forking to ai