added freemem and enter_matrix alias