finishing touches on removing segv because of GError issues