added function mapping

added extended function mapping to be able to distinguish between synced
methods and async methods