well it doesn't segfault so thats a start