added parents method + many fixes in data, emit and on functions