handling of optional media directories per objects