add totalcost
fix building
add getsectorallaround