getpos and getip implemented