hmm, need to check return code here