plugin system fixed up. some map functions split to overlay plugin