apply fs-core-optimized updates

https://github.com/jack-pappas/fs-core-optimized ( 6e471417bdbf8ec18cc5bb03739a375a9ef1397e )