serialize requirement to file