add lifecycle callbacks metadata