moved some logic to pushinginertia-commons-net