adding auto reload

for local development
further explanation