move print_malloc to it's own module