finally implemented fragment support