remove beforeload