new share, fixed stupid bug in createfile function.