fixed redirect to defaulthost
updated for new version of magic-log