init by url and other fixes