add adfa.go & move code there