now supports custom post mapping functions