merged code from vampus2.pl into vampus.pl