minor fixes and improvements to alias and loader