allow gui to run on random port too BLUR-342
define max frame size as constant