preparation for auto invoice creation