moved map initialization to a shared script