abstracted reloader to bash script