modifying core scripts