took preventative measures against segfaults in arguments