writing method for caching actual file
exec failing with fs. now moving to boost