rename file & added more ruby hooks