load magic module if present