move waves.cs to core