add initial version of BA for rigs. #2