added support for constructor in ambient classes