added support for medium and ghost