implemented proper behaviour for VST plugins