add function for persistent ulimit -n setting
set ulimit -n 65536 where necessary