add beginning of loader