added some hashbang improvements