logging and fixed magic url
merged in master