refactored media features - better conformance and error handling