made statSync work