fix for config intialization and media hook