implemented support for multiple worlds