getcontext() doesn't seem to work