fixes to stati and media