cleanup
mediaflag fix
gradient fix