code for release selection moved to shared