prepare variables for release