fix #38; attempt to implement stat requirements