added windows accept, added cross platform features