changes to make it work for Railo