fix for advanced compilation