fix files size check code
fix some local stack deps