refactored rcon obj