work on frags code