modifying jenkinsrest heavily