more fixes on shared objects refactor