added pre scripts