#8 gravity code externalized