use prefix and folder as arguments