implemented more callbacks in hub