WIP: include glue function to LM basic routines