re-added map init code