cleanup
fix syntax error
fix on filesize check