add hd resources, add magnetic code.