modifications for Resato PAS plugin (first version of)