changed diff for static memory support instead of files