fix subscriptions and reduce mnesia driver