dev/release server functionality implemented

Global variables removed