application setup fixes and improvements