updates code for BYOND 500

Signed-off-by: Mloc-Argent <colmohici@gmail.com>