now also supporting realtime with custom_commands
removed unused import