copied Loader files
fixed bug with random replace