decoupled physics from global module