added loader files and thread layout