fixing access to media api