modified for jenkins compatibility