automatic event and command handler subscribtion