added fragments support