refactor fdoc & fix bug on rbx 19 mode