doing things the right way; removed classes since the embedded proc does not do well with direct name mangling; assigned proper entry point to the rt thread