added raisl 4 compatibility