fix bad open() simplifymethods.(still not good though... will be different in golang)