inserted 3 more api's for logging