refactored how fragments are handled