master: reformatted rest script