fixed seg fault error and weird extensions