move richfile into common