some new library functions, sped up the memcpy quite a bit for larger copies