compatible with updated scripts