support for user defined functions for creating markers/popups