adapted for jenkins