refactoring but bugg to rest json bus object