invoke ref
function, simplify and augment

Signed-off-by: K-ballo <k@fusionfenix.com>